package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_JJFL"
 *     
*/
public class DmJjfl implements Serializable {

    /** identifier field */
    private String jjflDm;

    /** nullable persistent field */
    private String jjflMc;

    /** full constructor */
    public DmJjfl(String jjflDm, String jjflMc) {
        this.jjflDm = jjflDm;
        this.jjflMc = jjflMc;
    }

    /** default constructor */
    public DmJjfl() {
    }

    /** minimal constructor */
    public DmJjfl(String jjflDm) {
        this.jjflDm = jjflDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="JJFL_DM"
     *         
     */
    public String getJjflDm() {
        return this.jjflDm;
    }

    public void setJjflDm(String jjflDm) {
        this.jjflDm = jjflDm;
    }

    /** 
     *            @hibernate.property
     *             column="JJFL_MC"
     *             length="50"
     *         
     */
    public String getJjflMc() {
        return this.jjflMc;
    }

    public void setJjflMc(String jjflMc) {
        this.jjflMc = jjflMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("jjflDm", getJjflDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmJjfl) ) return false;
        DmJjfl castOther = (DmJjfl) other;
        return new EqualsBuilder()
            .append(this.getJjflDm(), castOther.getJjflDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getJjflDm())
            .toHashCode();
    }

}
